//
//  NSNumber+NumberUtil.m
//  minidai
//
//  Created by Steven.Yung on 2017/6/3.
//  Copyright © 2017年 迷你金服. All rights reserved.
//

#import "NSNumber+NumberUtil.h"

@implementation NSNumber (NumberUtil)

+ (NSNumber *)numberWithString:(NSString *)str {
    
    NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
    [numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle];
    NSNumber *avalible = [numberFormatter numberFromString: str];
    
    return avalible;
}

@end
